package com.qf.dao;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    User findByEmail(@Param("email")String email);

//    注册用户
    Integer insertUser(@Param("email") String email, @Param("name")String name);

//    判断用户密码登录
    User findByEmailAndPassword(@Param("email")String email, @Param("password")String password);
}
